package main

import (
	"fmt"
	"fucker/frame/comp"
	"fucker/frame/context"
)

func main() {
	//a := app.New()
	//w := a.NewWindow("Hello")
	//
	//hello := widget.NewLabel("Hello Fyne!")
	//w.SetContent(container.NewVBox(
	//	hello,
	//	widget.NewButton("Hi!", func() {
	//		hello.SetText("Welcome :)")
	//	}),
	//))
	//
	//w.ShowAndRun()
	g := &GFunc{}
	context.Fc.Reg(g)
	context.Fc.Parse()

	p := "./config.json"
	comp.StartFromConfigFile(p)

}

type GFunc struct {
}

func (c *GFunc) Add(wContext *context.WeightContext, a string, b string) string {
	fmt.Println(a + b)

	return a + b
}
